﻿using Basic.FormRemoteModel.PhysicalPage;
using Basic.FormRemoteModel.PhysicalPage.Model;
using Basic.FormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FormService.RpcEvent
{
    internal class PhysicalPageEvent : IRpcApiService
    {
        private readonly IPhysicalPageService _Service;

        public PhysicalPageEvent ( IPhysicalPageService service )
        {
            this._Service = service;
        }

        public PhysicalPageDto[] GetPhysicalPages ( GetPhysicalPages obj )
        {
            return this._Service.Gets(obj.FormId);
        }

        public long SetPhysicalPage ( SetPhysicalPage set )
        {
            return this._Service.Set(set.Data);
        }
    }
}
